U_s=196.5994;
I_s=72.8071;
U_p=124.8117;
cos_phi=0.66326;
L_d=0.0025396;
L_q=0.0025396;
L_so=0.0018;
f_s=133;
omega=2*pi*f_s;
R_s=0.0044396;
X_d=omega*L_d;
X_q=omega*L_q;

% beta=110*pi/180;
% 
% I_ges=I_s*exp(j*beta);
% I_q=j*imag(I_s*exp(j*beta));
% I_d=real(I_s*exp(j*beta));
% XqhIsq=j*omega*(L_q)*I_q;
% XdhIsd=j*omega*(L_d)*I_d;
% RsIs=R_s*I_ges;
% 
% U_akt=j*U_p+XqhIsq+XdhIsd+RsIs;
% 
% U_s=abs(U_akt);
% cos_phi=cos(angle(I_ges)-angle(U_akt));

[beta,beta_deg]=findBeta2(U_s,I_s,U_p,cos_phi,X_d,X_q,R_s)
